package com.kitty.listener;

import com.kitty.game.role.model.Role;

import com.kitty.listener.BaseGameEvent;
import com.kitty.listener.EventType;

public abstract class BasePlayerEvent extends BaseGameEvent {

	/** 玩家id */
	private final long playerUid;
	
/*	public BasePlayerEvent(EventType evtType, long playerUid) {
		super(evtType);
		this.playerUid = playerUid;
	}*/

	public BasePlayerEvent(EventType evtType, Role role) {
		super(evtType);
		this.playerUid = role.getUid();
	}
	
	public long getPlayerUid() {
		return this.playerUid;
	}
}
